import Layout from '@/layout'
export default [
  {
    path: '/departments',

    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/departments/index'),
        meta: { title: 'departments', name: 'departments', icon: 'tree' }
      }
    ]
  },
  {
    path: '/employees',

    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/employees/index'),
        meta: { title: 'employees', name: 'employees', icon: 'people' }
      },
      {
        path: 'import',
        component: () => import('@/views/employees/import.vue'),
        hidden: true
      },
      {
        path: 'details/:id',
        props: true,
        component: () => import('@/views/employees/details.vue'),
        hidden: true
      },
      {
        path: 'jobInfo',
        props: true,
        component: () => import('@/views/employees/jobInfo.vue'),
        hidden: true
      },
      {
        path: 'cardItem/:id',
        props: true,
        component: () => import('@/views/employees/cardItem.vue'),
        hidden: true
      }
    ]
  },
  {
    path: '/setting',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/setting/index'),
        meta: { title: 'settings', name: 'settings', icon: 'setting' }
      }
    ]
  },
  {
    path: '/salarys',

    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/salarys/index'),
        meta: { title: 'salarys', name: 'salarys', icon: 'money' }
      }
    ]
  },

  {
    path: '/attendances',

    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/attendances/index'),
        meta: { title: 'attendances', name: 'attendances', icon: 'skill' }
      }
    ]
  },
  {
    path: '/approvals',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/approvals/index'),
        meta: { title: 'approvals', name: 'approvals', icon: 'tree-table' }
      }
    ]
  },
  {
    path: '/permission',

    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/permission/index'),
        meta: { title: 'permissions', name: 'permissions', icon: 'lock' }
      }
    ]
  },
  {
    path: '/social',

    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/social/index.vue'),
        meta: {
          title: 'social_securitys',
          name: 'social_securitys',
          icon: 'table'
        }
      }
    ]
  }
]
